<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul></ul>
    <script src="./jquery.js"></script>
    <script>
        console.log('111111111\n22222');
        
        $(function(){
            $.ajax({
            url: 'https://api-v2.xdclass.net/api/teacher/v1/list',
            type:'get',
            // dataType:'json',
            // cache:false,
            success:function(res){
                $.each(res.data,function(index,item){
                    var $li = `<li>${item.name}</li>`
                    $('ul').append($li)
                    

                })
               
                
                
            }
        })

        })


    </script>
</body>

</html>